package com.telecom.weixi.parse;

import android.os.Parcel;
import android.os.Parcelable;

public class MenuContent implements Parcelable{
	String api;
	String flag;
	String note;
	int order;
	String menuId;
	String titleApi;
	
	public MenuContent(){
		
	}
	public MenuContent(Parcel source){
		api = source.readString();
		flag = source.readString();
		note = source.readString();
		order = source.readInt();
		menuId = source.readString();
		titleApi = source.readString();
	}
	
	public static Parcelable.Creator<MenuContent> CREATOR = new Creator<MenuContent>() {
		
		@Override
		public MenuContent[] newArray(int size) {
			return new MenuContent[size];
		}
		
		@Override
		public MenuContent createFromParcel(Parcel source) {
			return new MenuContent(source);
		}
	};
	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(api);
		dest.writeString(flag);
		dest.writeString(note);
		dest.writeInt(order);
		dest.writeString(menuId);
		dest.writeString(titleApi);
	}
	
	public String toString(){
		return api+"-" + flag + "-" + note + "-" + order + "-" + menuId + "-" + titleApi;
	}
	
	public String getApi() {
		return api;
	}
	public void setApi(String api) {
		this.api = api;
	}
	public String getFlag() {
		return flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	public String getMenuId() {
		return menuId;
	}
	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}
	public String getTitleApi() {
		return titleApi;
	}
	public void setTitleApi(String titleApi) {
		this.titleApi = titleApi;
	}
	
}
